<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRoutinesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('routines', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('小程序名称');
            $table->integer('column_id')->default(0)->comment('所属分类');
            $table->string('logo')->comment('小程序图标');
            $table->text('desc')->comment('小程序简介');
            $table->string('company')->comment('开发者');
            $table->string('imgs')->comment('小程序截图');
            $table->string('qrcode')->comment('小程序二维码');
            $table->string('tags')->comment('小程序标签');
            $table->string('index_num')->comment('阿拉丁指数');
            $table->string('status')->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('routines');
    }
}
